<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>axios保存一个用户</title>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
    <script>
        axios({
            method: 'post',
            url: 'http://localhost:8099/users',
            data: {
                username: "newUser12",
                password: "123456",
                phone: "13836159572",
                info: "{\"age\":20,\"city\":\"北京\"}",
                balance: 10000
            }
        }).then((result)=>{
            console.log(result.data);
        }).catch((err=>{
            console.log(err);
        }))
    </script>
</head>
<body>

</body>
</html>